﻿/**
 * This class will encapsulate the kinds of data source we may work with.
 * It supports constantly updating data sources, querying and key-based nodes.
 * The trick is that each node can be referred to with its unique string id.
 * @author waneck
 */

package cmtc.viz.source;

@:abstract class DataSource<T>
{

	public var dataUpdate(default, null):hsl.haxe.DirectSignaler<Array<String>>;
	
	private function new() 
	{
		this.dataUpdate = new hsl.haxe.DirectSignaler(this, false);
	}
	
	public function get(id:String):T
	{
		return null;
	}
	
	
}